package com.woniuxy.homepage.core.service.impl;

import com.woniuxy.homepage.core.model.CarStyle;
import com.woniuxy.homepage.core.mapper.CarStyleMapper;
import com.woniuxy.homepage.core.service.CarStyleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author gmx
 * @since 2021-06-29
 */
@Service
public class CarStyleServiceImpl extends ServiceImpl<CarStyleMapper, CarStyle> implements CarStyleService {

    @Resource
    private CarStyleMapper carStyleMapper;

    @Override
    public List<String> selectDis(Integer brandId, Integer typeId) {
        List<String> list = this.carStyleMapper.seletDis(brandId,typeId);
        return list;
    }

    @Override
    public List<String> selectYear(Integer brandId, Integer typeId, String displacement) {
        List<String> list = this.carStyleMapper.selectYear(brandId,typeId,displacement);
        return list;
    }

    @Override
    public List<String> selectStyle(Integer brandId, Integer typeId, String displacement, String year) {
        List<String> list = this.carStyleMapper.selectStyle(brandId,typeId,displacement,year);
        return list;
    }
}
